BatteryInfo

Instrument that informs about a device's battery.

This instrument can be obtained from a instrument providing device (such as a drone or a remote control) using: device.getInstrument(BatteryInfo::class.java)

See also

Types

Link copied to clipboard
interface Capacity

Battery capacity information.

Link copied to clipboard
interface Description

Describes the device's battery.

Link copied to clipboard
interface Versions

Provides version information upon various battery components.

Properties

Link copied to clipboard

Current battery capacity information.

Link copied to clipboard
abstract val cellVoltages: List<Int?>?

Current battery cells' voltage, in mV.

Link copied to clipboard
@get:IntRange(from = 0, to = 100)
abstract val charge: Int

Current battery charge level, as an integer percentage of full charge.

Link copied to clipboard
abstract val charging: Boolean

true when the battery is charging.

Link copied to clipboard
abstract val cycles: Long?

Current battery cycle count.

Link copied to clipboard

Battery description.

Link copied to clipboard
@get:IntRange(from = 0, to = 100)
abstract val health: Int?

Current battery health, as an integer percentage of full charge.

Link copied to clipboard
abstract val temperature: Int?

Current battery temperature, in Kelvin.

Link copied to clipboard

Battery components' version information.